package cn.signalpha.modules.shop.mapper;

import cn.signalpha.modules.shop.entity.OrderSettlePlace;
import cn.signalpha.modules.shop.vo.OrderSettlePlaceVO;
import cn.signalpha.modules.shop.vo.PlaceVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Mapper 接口
 *
 * @author signalpha
 */
public interface OrderSettlePlaceMapper extends BaseMapper<OrderSettlePlace> {

	/**
	 * 自定义分页
	 */
	List<OrderSettlePlaceVO> selectOrderSettlePlacePage(IPage page, @Param("params") Map<String, Object> params);

	/**
	 * 自定义统计
	 */
	Double selectOrderSettlePlaceTotal(@Param("params") Map<String, Object> params);

	/**
	 * 金额排行榜
	 */
	List<PlaceVO.RankVO> selectOrderRankList(@Param("params") Map<String, Object> params);

	/**
	 * 人数排行榜
	 */
	List<PlaceVO.RankVO> selectUserRankList(@Param("params") Map<String, Object> params);
}
